/**
 * 物料管理
 */
import Layout from "@/layout";
export default [
  {
    path: "/material-management",
    component: Layout,
    redirect: "/material-management/supplier",
    name: "MaterialManagement",
    meta: {
      title: "物料管理",
      icon: "el-icon-shopping-cart-full",
    },
    children: [
      {
        path: "supplier",
        component: () => import("@/views/material-management/supplier"), // Parent router-view
        name: "Supplier",
        meta: { title: "供应商管理" },
      },
      {
        path: "materials",
        component: () => import("@/views/material-management/materials-list"),
        name: "Materials",
        meta: { title: "物料列表" },
      },
      {
        path: 'materials-storage',
        component: () => import("@/views/material-management/materials-storage"),
        name: "MaterialsStorage",
        meta: { title: "物料库存" },
      },
      {
        path: 'materials-entry',
        component: () => import("@/views/material-management/materials-entry"),
        name: "MaterialsEntry",
        meta: { title: "物料入库" },
      },
      {
        path: 'materials-leave',
        component: () => import("@/views/material-management/materials-leave"),
        name: "MaterialsLeave",
        meta: { title: "物料出库" },
      },
      {
        path: 'materials-overdue',
        component: () => import("@/views/material-management/materials-overdue"),
        name: "MaterialsOverdue",
        meta: { title: "过期提醒" },
      }
    ]
  },
];
